{% extends 'organization/org_base.html' %}
{% block title %}<title>机构首页</title>{% endblock %}
{% block page_path %}机构首页{% endblock %}
{% block right_form %}
<div class="right companycenter layout grouping">
    <div class="head">
        <h1>全部课程</h1>
        <a class="green fr more" href="{% url 'organization:course_list' course_org.id %}">查看更多 > </a>
    </div>

    <div class="brief group_list">
        {% for course in course_list %}
        <div class="module1_5 box">
            <a href="{% url 'courses:course_detail' course.id %}">
                <img width="214" src="{{ MEDIA_URL }}{{ course.image }}"/>
            </a>
            <div class="des">
                <a href="{% url 'courses:course_detail' course.id %}"><h2>{{ course.name }}</h2></a>
                <span class="fl">课时：<i class="key">{{ course.learn_time }}</i></span>
                <span class="fr">参加人数：{{ course.students }}</span>
            </div>
            <div class="bottom">
                <span class="fl">{{ course.course_org.name }}</span>
                <span class="star fr  notlogin">
                    {{ course.fav_nums }}
                </span>
            </div>
        </div>
        {% endfor %}
    </div>

</div>
<div class="right companycenter layout">
    <div class="head">
        <h1>机构教师</h1>
        <a class="green fr more" href="{% url 'organization:org_teacher' course_org.id %}">查看更多 > </a>
    </div>

    <div class="diarys">
        <div class="module5 share company-diary-box" style="padding:10px 0;">
            {% for teacher in teacher_list %}
            <div class="left">
                <a href="{% url 'organization:teacher_detail' teacher.id %}">
                    <img class="pic" src="{{ MEDIA_URL }}{{ teacher.image }}"/>
                </a>
                <p>
                    <a href="{% url 'organization:teacher_detail' teacher.id %}">姓名：{{ teacher.name }}</a>
                </p>
            </div>
            {% endfor %}
        </div>
    </div>

</div>
<div class="right companycenter layout">
    <div class="head">
        <h1>机构介绍</h1>
        <!--<a class="green fr more" href="{% url 'organization:describe' course_org.id %}">查看更多 > </a>-->
    </div>
    <div class="cont">
        {% autoescape off %}
        &nbsp;&nbsp; {{ course_org.describe }}
        {% endautoescape %}
    </div>
</div>
{% endblock %}
